package com.hl.wuyeguanliIDEA.web;

import com.hl.wuyeguanliIDEA.pojo.PolicyNotice;
import com.hl.wuyeguanliIDEA.service.PolicyNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/policy")
public class PolicyNoticeController {
    @Autowired
    private PolicyNoticeService policyNoticeService;

    @RequestMapping("/selectPolicy")
    List<PolicyNotice> selectByPrimaryKey(PolicyNotice policyNotice){
        return policyNoticeService.selectByPrimaryKey(policyNotice);
    }
}
